import requestPlat from '@/common/requestPlat'
import Qs from 'qs';

// 我的服务卡
export let pageServePage = (params) => {
	return requestPlat({
		method: 'get',
		url: `serve/issue/user/page/${params.page}/${params.limit}`,
		params
	})
}

// 宠物需求列表
export let pageDemandPage = (params) => {
	return requestPlat({
		method: 'get',
		url: `cargo/user/demand/page/${params.page}/${params.limit}`,
		params
	})
}


// 添加需求
export let addNeed = (data) => {
	return requestPlat({
		method: 'post',
		url: `cargo/user/demand/add`,
		data,
		headers: {
			"Content-Type": 'application/json'
		},
		loadData:true,
	})
}

// 删除需求
export let demandDel = (data) => {
	return requestPlat({
		method: 'post',
		url: `cargo/user/demand/del`,
		data:Qs.stringify(data),
		loadData:true,
	})
}


// 服务记录
export let pageServeEmploy = (params) => {
	return requestPlat({
		method: 'get',
		url: `serve/user/employ/list`,
		params
	})
}

